package com.example.bdd.demo.steps;

import com.example.bdd.demo.pages.IndexPageService;
import io.cucumber.java.en.And;

public class IndexPageStep {

    private IndexPageService pageService;

    public IndexPageStep(IndexPageService pageService) {
        this.pageService = pageService;
    }

    @And("^I type the login name with \"([^\"]*)\"$")
    public void setLoginName(String content) {
        pageService.setLoginName(content);
    }

    @And("^I type the login password with \"([^\"]*)\"$")
    public void setLoginPassword(String content) {
        pageService.setLoginPassword(content);
    }


}
